﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterBody.Master" AutoEventWireup="true" CodeBehind="Products.aspx.cs" Inherits="Besture.UI.Service.Products" %>

<%@ Import Namespace="Besture.Utils" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">

    <div class="banner">
    	<div class="help-ban w980"><img src="/Upload/Images/Banner/<%=_BannerTop.ImageUrl%>"/>
        	<%=_BannerTop.ImageRemark%>
        </div>
    </div>
    
	<div class="main">
		<div class="w980">
        	<div class="position">
                您当前的位置：<a href="/Index.aspx">首页</a> &gt; <a href="javascript:void(0);">产品与服务</a> &gt; 产品介绍
            </div>
            <div class="map-cen clearfix">
            	<div class="map-left">
                      <h2>产品与服务</h2>
                      <div class="leftnav">
                          <ul>
                              <li class="on"><a href="javascript:void(0);"><span>产品介绍</span></a></li>
                              <li><a href="Financial.aspx"><span>服务介绍</span></a>
                              <ul class="submenu"><asp:Repeater ID="rpFinancialList" runat="server"><ItemTemplate>
                                  	  <li><a href="Financial.aspx#fina-one<%#Eval("ID") %>"><%#Eval("ImageLink")%></a></li>
                                      </ItemTemplate></asp:Repeater>
                                      <li><a href="Risk.aspx">在线服务</a></li>
                                  </ul>
                              </li>
                         </ul>
                     </div>
                </div>
                <div class="map-right">
                	<ul class="products-ul clearfix"><asp:Repeater ID="rpStateList" runat="server"><ItemTemplate>
                    	<li flag="<%#Eval("Code") %>"><%#Eval("Name") %>产品</li></ItemTemplate></asp:Repeater>
                    </ul>
                    <div class="products-all">
                    	<div class="products-one">
                            <table width="100%" class="products-table">
                              <tr>
                                <th width="126">产品名称</th>
                                <th width="106">类型</th>
                                <th width="136">预期年化收益率</th>
                                <th width="116">投资起点</th>
                                <th width="145">收益分配方式</th>
                                <th width="91">&nbsp;</th>
                              </tr>
                              <asp:Repeater ID="rpActivity" runat="server"><ItemTemplate>
                              <tr>
                                <td><div class="products-tn"><a href="Productsdetail.aspx?id=<%#Eval("ID")%>"><%#Eval("ProductName")%></a></div></td>
                                <td><div class="products-tn"><%#Eval("TypeName")%></div></td>
                                <td><div class="products-tn"><%#Eval("PreYearYield")%></div></td>
                                <td><div class="products-tn"><%#Eval("InvestStart")%></div></td>
                                <td><div class="products-tn"><%#Eval("YieldAllot")%></div></td>
                                <td><div class="products-tn"><a href="Productsdetail.aspx?id=<%#Eval("ID")%>">产品详情</a></div></td>
                              </tr></ItemTemplate></asp:Repeater>
                            </table>
                            
                            <!-- 分页 -->
                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" NextPageText="下一页" CssClass="pageList"
                        PrevPageText="上一页" PageSize="6" ShowFirstLast="False" ShowInputBox="Never" OnPageChanging="AspNetPager1_PageChanging"></webdiyer:AspNetPager>
                            <!-- /分页 -->
						</div>
                        <div class="products-one" style="display:none">
                            <table width="100%" class="products-table">
                              <tr>
                                <th width="126">产品名称</th>
                                <th width="106">类型</th>
                                <th width="136">预期年化收益率</th>
                                <th width="116">投资起点</th>
                                <th width="145">收益分配方式</th>
                                <th width="91">&nbsp;</th>
                              </tr>
                              <asp:Repeater ID="rpActivity2" runat="server"><ItemTemplate>
                              <tr>
                                <td><div class="products-tn"><a href="Productsdetail.aspx?id=<%#Eval("ID")%>"><%#Eval("ProductName")%></a></div></td>
                                <td><div class="products-tn"><%#Eval("TypeName")%></div></td>
                                <td><div class="products-tn"><%#Eval("PreYearYield")%></div></td>
                                <td><div class="products-tn"><%#Eval("InvestStart")%></div></td>
                                <td><div class="products-tn"><%#Eval("YieldAllot")%></div></td>
                                <td><div class="products-tn"><a href="Productsdetail.aspx?id=<%#Eval("ID")%>">产品详情</a></div></td>
                              </tr></ItemTemplate></asp:Repeater>
                            </table>
                            <!-- 分页 -->
                            <webdiyer:AspNetPager ID="AspNetPager2" runat="server" NextPageText="下一页" CssClass="pageList"
                        PrevPageText="上一页" PageSize="6" ShowFirstLast="False" ShowInputBox="Never" OnPageChanging="AspNetPager2_PageChanging">
                    </webdiyer:AspNetPager>
                            <!-- /分页 -->
						</div>
                    </div>
                </div>
            </div>
        </div>
	</div><!-- //main -->
    <asp:HiddenField ID="hidState" runat="server" Value="0" />
    <input id="hidStateID" type="hidden" value="<%=hidState.ClientID %>" />
    <script type="text/javascript">
        $(function () {
            $("#TopMenu li").removeClass("on").eq(9).addClass("on");
            var cid = $("#" + $("#hidStateID").val()).val();
            $(".products-ul li[flag=" + cid + "]").addClass("on");
            $(".products-all .products-one").eq($(".products-ul li[flag=" + cid + "]").index()).show().siblings().hide();
            $(".products-ul li").click(function () {
                var index = $(this).index();
                $(this).addClass("on").siblings().removeClass("on");
                $(".products-all .products-one").eq(index).show().siblings().hide();
                $("#" + $("#hidStateID").val()).val($(this).attr("flag"));
            });
        });
</script>
</asp:Content>
